package br.com.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.entidade.Soma;




@ManagedBean(name="somaBean")
@RequestScoped
public class SomaBean {

	
	private Soma soma = new Soma();
	
	
	public String somar(){
		
		
	soma.setResultado(soma.getNum1() + soma.getNum2());
	
	
		
		return null;
	}

	
	
	
	

	public Soma getSoma() {
		return soma;
	}


	public void setSoma(Soma soma) {
		this.soma = soma;
	}
	
	
	
}
